import request from '@/utils/request'

// 查询敏感词信息列表
export function listWm_sensitive(query) {
  return request({
    url: '/tot/wm_sensitive/list',
    method: 'get',
    params: query
  })
}

// 查询敏感词信息详细
export function getWm_sensitive(id) {
  return request({
    url: '/tot/wm_sensitive/' + id,
    method: 'get'
  })
}

// 新增敏感词信息
export function addWm_sensitive(data) {
  return request({
    url: '/tot/wm_sensitive',
    method: 'post',
    data: data
  })
}

// 修改敏感词信息
export function updateWm_sensitive(data) {
  return request({
    url: '/tot/wm_sensitive',
    method: 'put',
    data: data
  })
}

// 删除敏感词信息
export function delWm_sensitive(id) {
  return request({
    url: '/tot/wm_sensitive/' + id,
    method: 'delete'
  })
}
